package com.thuanpq.database.bus;

import android.content.Context;
import com.thuanpq.database.adapter.BlackIncomeAdapter;
import com.thuanpq.entity.IncomeEntity;

public class BlackIncomeBus {

	private BlackIncomeAdapter mDbAdapter;

	public BlackIncomeBus(Context context) {
		mDbAdapter = new BlackIncomeAdapter(context);
	}

	public boolean insertBlackIncome(IncomeEntity entity) {
		return mDbAdapter.insertBlackIncome(entity);
	}

	public boolean deleteBlackIncomeByNumber(String number) {
		return mDbAdapter.deleteBlackIncomeByNumber(number);
	}

	public boolean deleteAllBlackIncome() {
		return mDbAdapter.deleteAllBlackIncome();
	}

	public IncomeEntity[] getAllBlackIncome() {
		return mDbAdapter.getAllBlackIncome();
	}
}
